package com.tianquan.miracle.aop;

import java.lang.reflect.Method;

/**
 * @author starsea
 * @date 2024-10-11 下午2:32
 */
public class AopEntity {

    private Method beforeMethod;

    private Method afterMethod;

    private Method aroundMethod;

    /**
     * 当前解析的带有Aspect注解的类
     */
    private Object object;

    public AopEntity() {
    }

    public AopEntity(Method beforeMethod, Method afterMethod, Method aroundMethod, Object object) {
        this.beforeMethod = beforeMethod;
        this.afterMethod = afterMethod;
        this.aroundMethod = aroundMethod;
        this.object = object;
    }

    public Method getBeforeMethod() {
        return beforeMethod;
    }

    public void setBeforeMethod(Method beforeMethod) {
        this.beforeMethod = beforeMethod;
    }

    public Method getAfterMethod() {
        return afterMethod;
    }

    public void setAfterMethod(Method afterMethod) {
        this.afterMethod = afterMethod;
    }

    public Method getAroundMethod() {
        return aroundMethod;
    }

    public void setAroundMethod(Method aroundMethod) {
        this.aroundMethod = aroundMethod;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
